package com.ccb.jyzx.expand.ouapi.service.impl;

import com.ccb.jyzx.expand.ouapi.beans.OrganiztionInfo;
import com.ccb.jyzx.expand.ouapi.beans.sync.OrganiztionInfoSync;
import com.ccb.jyzx.expand.ouapi.dao.ouapi.OrganiztionDao;
import com.ccb.jyzx.expand.ouapi.service.OrganiztionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author XIEFEI
 * @date 2019-11-12 9:37
 * @Description
 **/
@Service
public class OrganiztionServiceImpl implements OrganiztionService {
    @Autowired
    OrganiztionDao organiztionDao;
    @Override
    public OrganiztionInfo getById(String id) {
        return organiztionDao.getById(id);
    }

    @Override
    public List<OrganiztionInfo> getAll() {
        return organiztionDao.getAll();
    }

    @Override
    public List<OrganiztionInfoSync> getAllSync() {
        return organiztionDao.getAllSync();
    }

    @Override
    public void insert(OrganiztionInfoSync organiztionInfoSync) {
        organiztionDao.save(organiztionInfoSync);
    }

    @Override
    public void update(OrganiztionInfoSync organiztionInfoSync) {
        organiztionDao.update(organiztionInfoSync);
    }

    @Override
    public void deleteById(String id) {
        organiztionDao.deleteById(id);
    }
}
